package com.alex.common.tools;

import java.io.IOException;

public enum FetchMethodEnum {
	ByURLStream {

		public String fetch(String hostAddr, String uri, EncodeEnum resEncode)
				throws IOException {
			return URLFetchUtils.fetchContentByURLStream(hostAddr, uri,
					resEncode);
		}
	},
	@Deprecated
	ByHttpClient {

		public String fetch(String hostAddr, String uri, EncodeEnum resEncode)
				throws IOException {
			return URLFetchUtils.fetchContentByHttpClient(hostAddr, uri,
					resEncode);
		}
	};

	public abstract String fetch(String hostAddr, String uri,
			EncodeEnum resEncode) throws IOException;

}
